import axios from 'axios'

function getCinemasAxios (list,offset) {
  let now = new Date()
  let year = now.getFullYear() // 年
  let month = now.getMonth() + 1 // 月
  let day = now.getDate() // 日
  return axios({
    url: `/ajax/cinemaList?day=${year + '-' + month + '-' + day}&offset=${offset}&limit=${list.limit}&districtId=${list.districtId}&lineId=${list.lineId}&hallType=${list.hallTypeId}&brandId=${list.brandId}&serviceId=${list.serviceId}&areaId=${list.areaId}&stationId=${list.stationId}&item=&updateShowDay=${list.updateShowDay}&reqId=${new Date().getTime()}&cityId=${list.cityId}`
  })
}

export default getCinemasAxios
